Release 10.1A: OpenEdge Deployment:
WebClient Applications
Setting up the application on the AppServer machine
The following section provides information about applications on AppServer machines.
Note: This example assumes that the AppServer machine is the same as the development machine on which you prepare the front-end and back-end application code. For this reason, this machine must be a Windows machine.
![]()
To set up the application on the AppServer machine:
- Verify that an OpenEdge development product was installed on the AppServer machine, and that the person doing the installation, when presented with the Setup Type window, chose the complete installation, as opposed to the typical installation or the custom installation.
- Verify that an AppServer was installed and configured on the AppServer machine.
- Create the WebClient application root directory, the symbol for which is
%APPROOTDIR%. The application root directory can reside anywhere, but note its path.Note: The- Recursively copy the source-code files of the Sports2000 application from the
%DOCS%\src\sports2000\guidirectory to%ASWORKDIR%.guidirectory contains both back-end and front-end application files.%ASWORKDIR%is where the entire application will be compiled, though only the back-end r-code (.r) files will be run from this directory.- Create a copy of the Sports2000 database on the AppServer machine. The copy can reside anywhere, but be sure to note its path.
- Start an OpenEdge session and do the following:
- Connect to the Sports2000 database, entering its path, which you noted in Step 5.
- Use the PROPATH Editor to add the AppServer work directory to the
PROPATH.- In the Application Compiler, go to Options
Compiler, change Minimize R-code size to YES, change Generate MD-5 to YES, and click OK. In the main window, click Modify. In the File Specification window, enter the AppServer’s working directory, click OK, and compile the application.
- Recursively copy the following directories as specified, creating the destination subdirectory as necessary:
- Copy the following files as specified, creating the destination subdirectory as necessary:
- Use a text editor to modify the
appsrvtt.dfile, which you copied in Step 8, as follows:- Use the WebClient Application Assembler as follows:
- From the main menu, select File
Open, and open
%APPROOTDIR%\sportspro.wcp.- On the General tab, change the path of the application root directory to its actual path on the AppServer machine. The default value is
d:\demo91c\sportspro.- On the same tab, click on the Locator button. The Configuration File Locator Definition window appears. In this window, change the URL to the host name of the server hosting the configuration file, which defaults to
http://yourhostname.- In the Codebase Locator Definition window (main menu
Deployment
Locators
Codebase), change the URL to the host name of the server hosting the codebase, which defaults to
http://yourhostname.- On the Options tab, check the System Tasks toggle box and click System Tasks Definition. The System Tasks Definition window appears.
On the Shortcut tab, check the Application Shortcut toggle box and click the ellipsis (...) button next to the Icon field. The Open window appears.
Manipulate the Open window to select the
progress.icofile, which you copied to%APPROOTDIR%in Step 7.On the Files tab, select the file
d:\demo91c\sportspro\csspin32.ocxand click Remove. Then, add the file%APPROOTDIR\csspin32.ocx. Finally, confirm the Application Specific toggle box is checked.- Save
sportspro.wcp.- In the Generate window (main menu
Deployment
Generate), then choose Regenerate Latest Version. In the Output Directory field, enter the name of the directory where you want the generated files to be placed; that is, the value of
%OUTDIR%. Finally, click OK.The WebClient Application Assembler creates the application configuration file and the cabinet files and places them into the output directory you specified.
- Use the
proservecommand or Progress Explorer to start a database server for thesports2000database running on the AppServer machine. For example, if thesportspro2000database resides at%APPROOTDIR%\databases, use a command like the following:
- Use Progress Explorer to configure the default
asbroker1AppServer instance as follows:
- In the General Options for Broker tab:
Change the broker working directory to the AppServer work directory (
%ASWORKDIR%).In the Appservice Name list, add the service name
sports2000partition.- In the General Options for Server tab:
Add the database connection parameter to Server Startup Parameters. For example if the
sports2000database resides at%ASWORKDIR%\databases, enter the following string:
- Use Progress Explorer or the
asbmancommand to start theasbroker1AppServer instance. For example (using theasbmancommand):
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |